package com.xike.microsysserver.dao;

import com.xike.entiy.MemberEntity;
import com.xike.microsysserver.entity.CouponEntity;
import org.apache.ibatis.annotations.Param;

public interface MemberDao {
    MemberEntity selectByAccount (@Param(value = "username") String username);

    int register (MemberEntity memberEntity);

    int updateByName (MemberEntity memberEntity);

    CouponEntity selectCouponById(@Param("id") int id);

    int userCoupon (@Param("id") int id);

    int signIn(MemberEntity currentMemberEntity);

    void signOut(String username);
}

